Before you start secondary development, configure the development environment accordingly, and introduce the SDK to your project.
Header Files and Library Files
During the installation of the software client, the installer installs the header files and library files required by the SDK on the computer. The SDK path: /opt/(software name)/Samples/(architecture)/Python.
Header files are in the directory of $(MVCAM_COMMON_RUNENV)\Samples\Python\MvImport.
The SDK provides the library files in Python (libMvCameraControl.so), with the path of ${MVCAM_COMMON_RUNENV}/(architecture)/libMvCameraControl.so
Development Environment Requirements
Before developing your program with the machine vision camera SDK, you need to set up an environment for Python programming first.
- Note
- Python 3.X is recommended. To check your Python version using the command prompt, you can type 'python –version' to display the installed version information.
You can refer to the following sample code to include header files of SDK in your program.
sys.path.append("../../MvImport")
from MvCameraControl_class import *